"""
@project: PyCharm
@author: MZM
@file: urls.py
@ide: PyCharm
@time: 2021/7/22 19:53
@desc： 
"""
from django.conf.urls import url
from django.urls import include, path
from rest_framework.routers import DefaultRouter

from . import views
from datestrunner import settings


def get_media_root():
    return settings.MEDIA_ROOT

router = DefaultRouter()
router.APIRootView = views.RootView

urlpatterns = [
    url(r'^',include(router.urls)),
    path(r'gettestdata/', views.testdata, name='get_testdata'),
    path(r'gettestjson/', views.get_testjson, name='get_testjson'),
    ]